package com.zofer.study.lambda;

import com.zofer.study.lambda.entity.Apple;

import java.util.Comparator;

public class LambdaTest1 {

    public static void main(String[] args) {

    }

    /**
     * test1
     */
    public void test1(){
       /* Comparator<Apple> byWeight = new Comparator<Apple>() {
            public int compare(Apple a1, Apple a2){
                return a1.getWeight().compareTo(a2.getWeight());
            }
        };*/


        /*Comparator<Apple> byWeight1 =
                (Apple a1, Apple a2) -> a1.getWeight().compareTo(a2.getWeight());*/


    }


    /**
     * test2
     */
    public static void test2(){

    }

}
